<!DOCTYPE html>
<html lang="en">
  <head>
  	<?php $settings = AdminSettings::first(); ?>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?php echo $settings->description; ?>">
    <meta name="keywords" content="<?php echo $settings->keywords; ?>" />
    <link rel="shortcut icon" href="<?php echo URL::asset('public/img/favicon.ico'); ?>" />

    <title>Login - <?php echo $settings->title; ?></title>

    <?php echo $__env->make('includes.css_general', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    
    <link href="<?php echo URL::asset('public/css/jquery.fs.picker.min.css'); ?>" rel="stylesheet">

  </head>

  <body id="join-section">
     
     <?php echo $__env->make('includes.navbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    
<!-- Start CONTAINER -->
<div class="container wrap-ui">
	<!-- ROW -->
	<div class="row">
        
     	<!-- Col MD -->
<div class="col-md-12">	
	
	<div class="row">
		
		<div class="col-md-12">
			
			<h3 class="text-center join-title">Login in <?php echo $settings->title; ?></h3>
			<h4 class="text-center join-title">Do not have an account? <a href="join" class="btn btn-xs btn-success no-shadow font-default btn-join margin-zero">Sign Up</a></h4>
		
			
		<div class="login-form">
			<?php if(Session::has('notification')): ?>
			<div class="alert alert-danger btn-sm" role="alert">
				<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            		<?php echo Session::get('notification'); ?>

            		</div>
            	<?php endif; ?>
          	<form action="<?php echo URL::to('login'); ?>" method="post" name="form" id="signup_form">
           
            
            <div class="form-group">
              <input type="text" class="form-control login-field" value="<?php echo Input::old('username_email'); ?>" name="username_email" id="username_email" placeholder="Username o Email" title="Username o Email" autocomplete="off">
              <label class="login-field-icon fui-user" for="username"></label>
             </div>

            
            <div class="form-group">
              <input type="password" class="form-control login-field" name="password" id="password" placeholder="Password" title="Password" autocomplete="off">
              <label class="login-field-icon fui-lock" for="password"></label>
            </div>
         
           <button type="submit" id="buttonSubmit" class="btn btn-block btn-lg btn-success">Sign in</button>

			<span class="login-link" id="twitter-btn-text">Or Sign in with...</span>

					<div class="facebook-login" id="twitter-btn">
						<a href="http://socialpro.miguelvasquez.net/oauth/?oauth_provider=twitter" class="btn btn-block btn-lg btn-info"><i class="fa fa-twitter"></i> Twitter</a>
					</div>
							
    	<label class="btn-block">
		   <a href="recover" class="label-terms recover">Forgot password?</a>
		</label>
		
		<label class="radio-inline">
				<input <?php if( Session::get('rememberInput') ) : echo 'checked="checked"'; endif ?> id="keep_login" class="no-show" name="keep_login" type="checkbox" value="1">
				<span class="input-sm keep-login-title">Keep me logged in</span>
		</label>

          </form></div>
			
		</div><!-- /COL MD -->
		
		<div class="col-md-8">
								
		</div><!-- /COL MD -->
		
	</div><!-- /Row -->
    	
 </div><!-- /COL MD -->
    	
</div><!-- /Row -->

    </div> <!-- /container -->
    
    <?php echo $__env->make('includes.javascript_general', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    
    <script type="text/javascript">
    
    $('#username_email').focus();
    
    $("input[type=radio], input[type=checkbox]").picker();
    
    // URL BASE
    var URL_BASE = "<?php echo URL::to('/'); ?>";
    
    // Tooltip
    $('.shotTooltip').tooltip();
    
    </script>
    
  </body>
</html>